﻿<Application x:Class="Remember.WPF.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             
            StartupUri="/Pages/TTS.xaml">
    <!--StartupUri="MainWindow.xaml"-->
    <Application.Resources>
                <!--<ResourceDictionary Source="Assets/Skins.xaml"/>-->
        <ControlTemplate x:Key="ButtonControlTemplateStart1" TargetType="{x:Type Button}">
            <Grid>
                <Polygon x:Name="ButtonPolygon" Stretch="Fill" Points="0,0 0,60 30,30" Stroke="White" StrokeThickness="0">
                    <Polygon.Fill>
                        <SolidColorBrush Color="Green" Opacity="1"/>
                    </Polygon.Fill>
                </Polygon>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="ButtonPolygon" Property="Fill" Value="LimeGreen"></Setter>
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="ButtonPolygon" Property="Fill" Value="Gray"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="ButtonControlTemplateStartBig" TargetType="{x:Type Button}">
            <Border BorderThickness="2" CornerRadius="6" BorderBrush="Gray" Name="ButtonBorder">
                <Grid>
                    <TextBlock Name="ButtonText" Text="{TemplateBinding Content}" Width="86" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="36,4,0,0" />
                    <Polygon x:Name="ButtonPolygon" Width="24" Height="26" Stretch="Fill" Points="0,0 0,60 30,30" Stroke="White" StrokeThickness="0" HorizontalAlignment="Left" Margin="16,0,0,0">
                        <Polygon.Fill>
                            <SolidColorBrush Color="Green" Opacity="1"/>
                        </Polygon.Fill>
                    </Polygon>
                </Grid>
            </Border>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="ButtonBorder" Property="BorderBrush" Value="LimeGreen"></Setter>
                    <Setter TargetName="ButtonText" Property="TextDecorations" Value="Underline"></Setter>
                    <Setter TargetName="ButtonPolygon" Property="Fill" Value="LimeGreen"></Setter>
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="ButtonBorder" Property="BorderBrush" Value="Gray"></Setter>
                    <Setter TargetName="ButtonText" Property="TextDecorations" Value=""></Setter>
                    <Setter TargetName="ButtonPolygon" Property="Fill" Value="Gray"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>


        <ControlTemplate x:Key="ButtonControlTemplateText" TargetType="{x:Type Button}">
            
            <Border BorderThickness="2" CornerRadius="6" BorderBrush="Gray" Name="ButtonBorder">
                <Grid Background="Transparent">
                    <TextBlock Name="ButtonText" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                </Grid>
            </Border>
            
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="ButtonBorder" Property="BorderBrush" Value="LimeGreen"></Setter>
                    <Setter TargetName="ButtonText" Property="TextDecorations" Value="Underline"></Setter>
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="ButtonBorder" Property="BorderBrush" Value="Gray"></Setter>
                    <Setter TargetName="ButtonText" Property="TextDecorations" Value=""></Setter>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="ButtonControlTemplateUser" TargetType="{x:Type Button}">
            <Grid>
                <Image Height="16" HorizontalAlignment="Left" Name="ButtonIcon" VerticalAlignment="Center" Width="16" Source="/Remember.WPF;component/Images/login16x16.png" />
                <TextBlock Height="32" HorizontalAlignment="Left" Text="{TemplateBinding Content}" Name="ButtonText" VerticalAlignment="Top" FontSize="14" Padding="20,3,0,0">
                </TextBlock>

            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="ButtonText" Property="TextDecorations" Value="Underline"></Setter>
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="ButtonText" Property="TextDecorations" Value=""></Setter>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
        
        <ControlTemplate x:Name="MenuItemStyle1" x:Key="{ComponentResourceKey ResourceId=SubmenuItemTemplateKey, TypeInTargetAssembly={x:Type MenuItem}}" TargetType="{x:Type MenuItem}">
            <Grid SnapsToDevicePixels="true">
                <Rectangle x:Name="Bg" Fill="{TemplateBinding Background}" RadiusY="6" RadiusX="6" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1"/>
                <Rectangle x:Name="InnerBorder" Margin="1" RadiusY="2" RadiusX="2"/>
                <Grid>
                </Grid>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsHighlighted" Value="true">
                    <Setter Property="Fill" TargetName="Bg" Value="{StaticResource MenuItemSelectionFill}"/>
                    <Setter Property="Stroke" TargetName="Bg" Value="#8071CBF1"/>
                    <Setter Property="Stroke" TargetName="InnerBorder" Value="#40FFFFFF"/>
                </Trigger>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Foreground" Value="#FF9A9A9A"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="CustomTopMenuMax" TargetType="{x:Type Button}">
            <Grid>
                <Path Name="ui2" Data="M1,0 L12,0 12,10 6,10 6,6 1,6 z M1,6 L6,6 6,10 1,10 z M0,6 L1,6 1,10 6,10 6,12 0,12 z" HorizontalAlignment="Center" Height="12" Stretch="Fill" Stroke="LimeGreen" VerticalAlignment="Center" Width="12" IsEnabled="False"  />
                <Ellipse Name="ui1" HorizontalAlignment="Center" Height="24" VerticalAlignment="Center" Width="24" Stroke="LimeGreen" StrokeThickness="1.5" Panel.ZIndex="100" />
                <Ellipse Name="ui0" HorizontalAlignment="Center" Height="24" VerticalAlignment="Center" Width="24" Stroke="Transparent" StrokeThickness="10" Panel.ZIndex="101" />
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="ui1" Property="Stroke" Value="LimeGreen"></Setter>
                    <Setter TargetName="ui1" Property="StrokeThickness" Value="2"></Setter>
                    <Setter TargetName="ui2" Property="Stroke" Value="LimeGreen"></Setter>
                    <Setter TargetName="ui2" Property="StrokeThickness" Value="2"></Setter>
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="ui1" Property="Stroke" Value="WhiteSmoke"/>
                    <Setter TargetName="ui2" Property="Stroke" Value="WhiteSmoke" />
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

        <ControlTemplate x:Key="CustomTopMenuExit" TargetType="{x:Type Button}">
            <Grid>
                <Path x:Name="ui2" Stroke="LimeGreen" StrokeThickness="1" Data="M 1,1 L 10,10 M 10,1 L 1,10" HorizontalAlignment="Center" VerticalAlignment="Center" />
                <Ellipse Name="ui1" HorizontalAlignment="Center" Height="24" VerticalAlignment="Center" Width="24" Stroke="LimeGreen" StrokeThickness="1.5" Panel.ZIndex="100" />
                <Ellipse Name="ui0" HorizontalAlignment="Center" Height="24" VerticalAlignment="Center" Width="24" Stroke="Transparent"  StrokeThickness="10" Panel.ZIndex="101" />
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="ui1" Property="Stroke" Value="LimeGreen"></Setter>
                    <Setter TargetName="ui1" Property="StrokeThickness" Value="2"></Setter>
                    <Setter TargetName="ui2" Property="Stroke" Value="LimeGreen"></Setter>
                    <Setter TargetName="ui2" Property="StrokeThickness" Value="2"></Setter>
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="ui1" Property="Stroke" Value="WhiteSmoke"/>
                    <Setter TargetName="ui2" Property="Stroke" Value="WhiteSmoke" />
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

    </Application.Resources>
</Application>
